package com.itheima.exerciseTest.test60_69;

import java.io.IOException;
import java.net.*;

public class Test68 {
    public static void main(String[] args) throws IOException {

        DatagramSocket ds = new DatagramSocket();

        byte[] bytes = "我爱你".getBytes();
        InetAddress byName = InetAddress.getByName("192.168.23.119");
        int port = 11111;
        DatagramPacket dp = new DatagramPacket(bytes,bytes.length,byName,port);

        ds.send(dp);

        ds.close();
    }
}
